<?php

namespace app\index\model;

use think\Model;

/**
 * 搜索词
 */
class Search extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = '__SEARCH_KEYWORD__';

    static public function topList($num = 5){
        $num = intval($num);
        $data_list = self::order('listorder ASC,hit DESC')->limit($num)->select();
        return $data_list;
    }
    
}